Memory Cognizant Query Optimization
نویسندگان
چکیده
ABSTRACT Complex queries make heavy use of join, aggregation and sorting operations and these operations are memory intensive. Typi al optimizers assume all the memory to be available to ea h operator in the query tree. But while exe uting pipelines memory will get divided amongst all the operators running simultaneously in a pipeline. The ost of an operator generally depends on the available memory. If the memory allo ated to an operator is less than what an optimizer assumes, ost estimated by the optimizer would be wrong. Thus the query optimization and memory distribution are interdependent and if done separately may not yield best results. The query optimizer should not only onsider the total memory available but should also de ide how to divide it optimally among the operators of the plan. We show how to optimize a query given the ost versus memory allo ation fun tion for ea h operator. We have extended the Vol ano optimizer to make it memory ognizant. Part of the job of the optimizer is to de ide whi h edge to pipeline and whi h edge to blo k. A pipelinable edge an be broken (i.e. onverted) into a blo king edge. But the de ision to break a pipelinable edge depends upon whether the extra memory available to individual pipelinable trees thus formed an more than o set the extra disk IO of the intermediate results. This de ision is integrated into our memory ognizant optimizer.
منابع مشابه
Relational Databases Query Optimization using Hybrid Evolutionary Algorithm
Optimizing the database queries is one of hard research problems. Exhaustive search techniques like dynamic programming is suitable for queries with a few relations, but by increasing the number of relations in query, much use of memory and processing is needed, and the use of these methods is not suitable, so we have to use random and evolutionary methods. The use of evolutionary methods, beca...
متن کاملManaging Query Compilation Memory Consumption to Improve DBMS Throughput
While there are known performance trade-offs between database page buffer pool and query execution memory allocation policies, little has been written on the impact of query compilation memory use on overall throughput of the database management system (DBMS). We present a new aspect of the query optimization problem and discuss a solution implemented in Microsoft SQL Server 2005. The solution ...
متن کاملShark: SQL and Analytics with Cost-Based Query Optimization on Coarse-Grained Distributed Memory
Same as Report (SAR) 18. NUMBER
متن کاملIn-memory Distributed Spatial Query Processing and Optimization
Due to the ubiquity of spatial data applications and the large amounts of spatial data that these applications generate and process, there is a pressing need for scalable spatial query processing. In this paper, we present new techniques for spatial query processing and optimization in an in-memory and distributed setup to address scalability. More specifically, we introduce new techniques for ...
متن کاملSPARQL Query Optimization Using Selectivity Estimation
This poster describes three static SPARQL optimization approaches for in-memory RDF graphs: (1) a selectivity estimation index (SEI) for single query triple patterns; (2) a query pattern index (QPI) for joined triple patterns; and (3) a hybrid optimization approach that combines both indexes. Using the Lehigh University Benchmark (LUBM), we show that the hybrid approach outperforms other SPARQL...
متن کامل